import request from "@/utils/request"

export const getAllApi = (pageNum, pageSize) => {
  return request.get(`/warehousing/entry/detail/sort?pageNum=${pageNum}&pageSize=${pageSize}`)
}
export const getStatusAllApi = (pageNum, pageSize) => {
  return request.get(`/warehousing/entry/detail/sort/status?pageNum=${pageNum}&pageSize=${pageSize}`)
}
export const addApi = (data) => {
  return request.post(`/warehousing/entry/detail/sort`, data)
}
export const showBackApi = (id) => {
  return request.get(`/warehousing/entry/detail/sort/${id}`)
}
export const updateApi = (data) => {
  return request.put(`/warehousing/entry/detail/sort`, data)
}
export const delApi = (ids) => {
  return request.delete(`/warehousing/entry/detail/sort?ids=${ids}`)
}
export const getInfoApi = () => {
  return request.get(`/warehousing/entry/detail/sort/info`)
}

export const addBatchApi = (data) => {
  return request.post(`/warehousing/entry/detail/sort/addBatch`,data)
}
//这个是用来更新数量的
export const updateByIdApi = (data) => {
  return request.put(`/warehousing/entry/detail/sort/update-count`, data)
}